<?php
    require "../run3.php";
?><head>
		<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
		<style>
			body { font: normal 12px Arial,Helvetica,Tahoma,Verdana,Sans-Serif; }
			#embed { width: 100%; height: 110px; margin: 5px 0 0 0; border: 1px solid #a0a0a0; font: normal 11px Courier, Fixedsys, serif; color: #333; }
		</style>
<script src="/snapol/js/ajax.js"></script>

<script src="/snapol/js/ajax_Edit.js"></script>
<script src="/snapol/js/ajax_Form.js"></script>
<script src="/snapol/js/ajax_Data.js"></script>
<script src="/snapol/js/ajax_Window.js"></script>
<script src="/api/multiupload/swfobject.js"></script>
<script src="/api/jquery/jquery.js"></script>

	
    
    <script language="javascript">
    
    function insertWizzard() {
		
			alert('test');
            
			/*for (var i=0; i<window.frames.length; i++) {
                       if(window.frames[i].name == 'iframeMediaEmbed') {
                         // var content = window.frames[i].document.getElementById("embed").value;
                         frameId = i;
                       }
                    } */
                    
                    //content = 'hello world';
            str = insertDatabaseForm(0);
			alert(str);
			$("#cmsText").append(str); 


$('#someDiv').dialog('close');	
		
	}
	
	
    
    </script>


 {ajax}       
        
        
	</head>


<form action="" method="post" name="insertForm" id="insertForm">
	  <p>Tabelle<br>
<select name="tableFormular" id="tableFormular"  onclick=" getData('cms_form','ausgabe', 't2='+getElementValue('tableFormular')); return false;">
      <option value=""></option>
      
[sql:SELECT replace(table_name, "[domain_prefix]", "") as name FROM INFORMATION_SCHEMA.TABLES WHERE table_schema = '[snapol_db]' AND table_name LIKE '[domain_prefix]%']
	      
	      <option value="[name]">[name]</option>
      
    [data_end]
        
        </select>
      </p>
<p id="ausgabe">&nbsp;</p>
      <p>Redirect <br />
        <select name="listRedirect" id="listRedirect">
          <option value=""></option>
          
                        
                
            
                
                
                
                
                        
        [data:table="snapol_page" orderby="titel"]
          
                
                
                
                
                
            
                
                
    
                
          <option value="[_url]">[titel]</option>
          
                
    
                
                
            
                
                
                
                
                
        [data_end]
        
              
              
              
              
              
          
              
              
  
              
        </select>
      </p>
      <p>Alert Mail<br />
        <select name="listAlertMail2" id="listAlertMail2">
          <option value=""></option>
                 
        [data:table="snapol_alertmail" orderby="filename"]
                
                
                
                
          <option value="&lt;a href=/snapol/call/sendAlertMail.php?filename=[filename]&gt;Send Mail [filename]&lt;/a&gt;">[filename]</option>
          
                
                
                
        [data_end]
              
              
              
              
        </select>
      </p>
	</form>
	<p>
	  <label>
	    <input type="button" name="button" id="button" value="Einf&uuml;gen" onClick="insertWizzard()">
      </label>
	</p>
